<?php
/*------------------------------------------------------------------------
# mod_vportfolio_categories - VPortfolio Categories Module
# ------------------------------------------------------------------------
# author    Vsmart Extensions
# copyright Copyright (C) 2010 www.vsmart-extensions.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.vsmart-extensions.com
# Technical Support:  Forum - http://www.vsmart-extensions.com
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

class mod_vportpolio_categories_Helper{

	function getCategories(){
		
		$db			=& JFactory::getDBO();
		
		$query = 'SELECT a.*'.
				' FROM #__vportfolio_category AS a'.
				' WHERE a.public = "1"' .
				' ORDER BY a.name';
		$db->setQuery($query);
		$results = $db->loadObjectList();
		
		return $results;
	}
}
